//1.引入模块
var http = require("http");

//2.创建服务器
http.createServer(function(request,response){
    //发送http头部
    response.writeHead(200,{
        'Content-Type':'text/plain'
    });

    //发送响应数据
    response.end('hello word!!');
}).listen(8888);//绑定端口

